﻿@{
    ViewBag.Title = "销售收入统计";
}
@using X.PagedList;
@using X.PagedList.Mvc.Core;
@using FwProject.Statistics.Dto
@model IPagedList<SalesRevenueOutputDto>
@section styles{
    <link href="~/static/css/client.css" type="text/css" rel="stylesheet" />
    <link href="~/static/css/system.css" type="text/css" rel="stylesheet" />
    <link href="~/static/css/contract.css" type="text/css" rel="stylesheet" />

    <link href="~/Content/bootstrap.css" rel="stylesheet"/>
    <link href="~/Theme/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet"  />
    <link href="~/Theme/css/animate.min.css" rel="stylesheet"  />
    <link href="~/Theme/css/style.min862f.css?v=4.1.0" rel="stylesheet"  />
    <link href="~/Theme/js/plugins/layer/skin/layer.css" rel="stylesheet"  />
    <link href="~/css/main.css" rel="stylesheet"  />
}
<style>
    a {
        text-decoration: none;
    }

    .brand_logo {
        width: 28px;
        height: 28px;
    }

    .hidden {
        display: none;
    }

    .layui-table td, .layui-table th {
        padding: 15px;
    }
</style>
<div class="layui-fluid layui-content">
    <div class="layui-title layui-clear layui-row">
        <h2 class="layui-col-md10 layui-col-sm9 layui-col-xs7">@ViewBag.Title</h2>
    </div>
    <div class="layui-eacher layui-row layui-clear">
        <form class="layui-clear" asp-controller="Statistics" asp-action="LoadingDetails" data-ajax="true" data-ajax-update="#data_list" data-ajax-method="Get" data-ajax-mode="replace" data-ajax-begin="AjaxBegin" data-ajax-success="AjaxSuccessCallback">
            <div class="layui-form layui-clear">
                <div class="layui-col-md6 layui-col-pc7 layui-col-lg7 layui-form-group">
                    <label class="layui-form-label">
                        下单时间：
                    </label>
                    <div class="layui-input-block">
                        <input type="text" class="layui-input" name="orderTime" id="orderTime" />
                    </div>
                </div>
                <div class="layui-col-md1">
                    <button class="layui-btn layui-btn-sm layui-btn-normal" id="search" type="submit"> 搜索 </button>
                </div>
            </div>
        </form>
    </div>
    <div class="layui-data layui-table-container" id="data_list">
        @{Html.RenderPartial("SalesRevenuePartial", Model);}
    </div>
</div>
<div id="Layer_ajax" class="deploy-plus"></div>

@section scripts{
    <script src="~/static/js/jquery.ztree.core.js" type="text/javascript"></script>
    <script src="~/static/js/jquery.ztree.excheck.js" type="text/javascript"></script>
    <script src="~/static/js/jquery.ztree.exedit.js" type="text/javascript"></script>
    <script src="~/js/main.js"></script>
    <script type="text/javascript">

        var layer,form, table, upload;
        layui.use(['form', 'layedit', 'laydate', 'layer'], function () {
            var layedit = layui.layedit
                , laydate = layui.laydate;

            layer = layui.layer;
            form = layui.form;


            //年月选择器
            laydate.render({
                elem: '#orderTime',
                value: '@DateTime.Now.ToString("yyyy-MM")',
                type: 'month'
            });

        });


        $("#layui-Area").click(function () {
            $(".layui-Area .layui-Area-hide").toggleClass("layui-Area-show")
            $(this).parent(".layui-form-select").toggleClass("layui-form-selected");
        });

        $(".layui-Area").mouseleave(function () {
            $(".layui-Area .layui-Area-hide").removeClass("layui-Area-show")
        })


        $(document).ready(function () {

        });


    </script>
}